﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
    string applibaryid = Request.QueryString["applibaryid"];
    var app = new YJ.Platform.AppLibrary().Get(applibaryid.ToGuid());
    if (app != null && !app.Address.IsNullOrEmpty())
    {
        string url = app.Address + (app.Address.IndexOf('?') >= 0 ? app.Params : "?" + app.Params) + "&" + Request.Url.Query.TrimStart('?');
        Response.Redirect(url);
    }
}


